package com.regent.central.bill.repository.mrp.dto.arrive;

import java.io.Serializable;

/**
 * 关联验布或缩布引起的库存变动记录
 *
 * @author 钟宝林
 * @date 2018-06-25 18:57
 **/
public class ArriveCheckShrunkStockChangeDTO implements Serializable {
    private static final long serialVersionUID = -2281173151334181683L;

    /**
     * 到料单ID
     */
    private String billMaterialArriveId;
    /**
     * 物料skuId
     */
    private String materialSkuId;
    /**
     * 库存变动记录
     */
    private String stockChangeId;

    public String getBillMaterialArriveId() {
        return billMaterialArriveId;
    }

    public void setBillMaterialArriveId(String billMaterialArriveId) {
        this.billMaterialArriveId = billMaterialArriveId;
    }

    public String getMaterialSkuId() {
        return materialSkuId;
    }

    public void setMaterialSkuId(String materialSkuId) {
        this.materialSkuId = materialSkuId;
    }

    public String getStockChangeId() {
        return stockChangeId;
    }

    public void setStockChangeId(String stockChangeId) {
        this.stockChangeId = stockChangeId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        ArriveCheckShrunkStockChangeDTO that = (ArriveCheckShrunkStockChangeDTO) o;

        if (billMaterialArriveId != null ? !billMaterialArriveId.equals(that.billMaterialArriveId) : that.billMaterialArriveId != null)
            return false;
        return materialSkuId != null ? materialSkuId.equals(that.materialSkuId) : that.materialSkuId == null;
    }

    @Override
    public int hashCode() {
        int result = billMaterialArriveId != null ? billMaterialArriveId.hashCode() : 0;
        result = 31 * result + (materialSkuId != null ? materialSkuId.hashCode() : 0);
        return result;
    }
}
